#!/bin/bash
set -x
fn=$1
bdir=${fn%%/*}
mdir=$(dirname ${fn##$bdir/})
bfn=$(basename $fn)
sed -e 's/<action>update/<action>delete/g' $fn > ${bdir}d/$mdir/$bfn
